using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DaoHelper.Religion.Entity;
using DaoHelper.Religion.Entity.Helper;

namespace DaoHelper.Religion
{
	public class TgUserInfoDaoBase : BaseProvider
	{
		/// <summary>
		/// Purpose: Class constructor.
		/// </summary>
		public TgUserInfoDaoBase()
		{
			// Nothing for now.
		}
		
		public TgUserInfoEntity SelectOne(Guid Id)
        {
            TgUserInfoEntity tmp = new TgUserInfoEntity();
            tmp = (TgUserInfoEntity)SelectByKey(tmp, "Id" , Id);
            return tmp;
        }
		
		public TgUserInfoEntity Insert(TgUserInfoEntity entity)
        {
            object returnvalue = ObjectInsert(entity);
            if (returnvalue != null)
                return (TgUserInfoEntity)returnvalue;
            return null;
        }

        public void Update(TgUserInfoEntity entity)
        {
            ObjectUpdate(entity);
        }
	}
}
